import { service } from '@/service'

enum Api {
  list = 'hbsys-system/operlog/list',
  save = 'hbsys-system/syslabeltype/save',
  edit = 'hbsys-system/syslabeltype/updateDetails',
  dele = 'hbsys-system/syslabeltype/deleteBatch',
  tagList = 'hbsys-system/syslabel/page',
  saveTag = 'hbsys-system/syslabel/save',
  updateTag = 'hbsys-system/syslabel/updateDetails',
  deleteTag = 'hbsys-system/syslabel/deleteBatch',
  tagDetail = 'hbsys-system/syslabel/info'
}

export const logList = (params?: any) => {
  return service.request({
    url: Api.list,
    method: 'GET',
    params
  })
}

export const logExport = (data?: any) => {
  return service.request({
    url: 'hbsys-system/operlog/export',
    method: 'POST',
    data
  })
}
